import request from "./request";

enum API {
    saveTestApi="/huaweiapi/TestApi/saveTestApi",
    selectOne="/huaweiapi/TestApi/selectOne",
    selectPage="/huaweiapi/TestApi/selectPage"
  }



  export const selectOne=async (uri: string)=>{
    return await request.post(API.selectOne,{uri});

}

export const saveTestApi=async ({module,des,uri,content})=>{
    return await request.post(API.saveTestApi,{module,des,uri,content});

}

export const selectPage=async ({module,uri,pageNum,pageSize})=>{
    return await request.post(API.selectPage,{module,uri,pageNum,pageSize});

}